<template>
  <div class="setting">
    <el-card shadow="always" :body-style="{ padding: '20px' }">
      <el-tabs tab-position="left">
        <el-tab-pane label="安全设置">
          <div class="tabs">
            <div class="title">安全设置</div>
            <div class="list">
              <div class="item">
                <div class="left">
                  <p class="text">账号密码</p>
                  <p class="desc">当前密码强度: 强</p>
                </div>
                <div class="right">
                  <el-button type="text" size="default">修改</el-button>
                </div>
              </div>
              <div class="item">
                <div class="left">
                  <p class="text">密保手机</p>
                  <p class="desc">已绑定手机：138****8293</p>
                </div>
                <div class="right">
                  <el-button type="text" size="default">修改</el-button>
                </div>
              </div>
              <div class="item">
                <div class="left">
                  <p class="text">密保问题</p>
                  <p class="desc">未设置密保问题，密保问题可有效保护账户安全</p>
                </div>
                <div class="right">
                  <el-button type="text" size="default">修改</el-button>
                </div>
              </div>
              <div class="item">
                <div class="left">
                  <p class="text">备用邮箱</p>
                  <p class="desc">已绑定邮箱：ant***sign.com</p>
                </div>
                <div class="right">
                  <el-button type="text" size="default">修改</el-button>
                </div>
              </div>
              <div class="item">
                <div class="left">
                  <p class="text">MFA 设备</p>
                  <p class="desc">未绑定 MFA 设备，绑定后，可以进行二次确认</p>
                </div>
                <div class="right">
                  <el-button type="text" size="default">修改</el-button>
                </div>
              </div>
            </div>
          </div>
        </el-tab-pane>
        <el-tab-pane label="新消息通知">
          <div class="tabs">
            <div class="title">安全设置</div>
            <div class="list">
              <div class="item">
                <div class="left">
                  <p class="text">账号密码</p>
                  <p class="desc">其他用户的消息将以站内信的形式通知
                  </p>
                </div>
                <div class="right">
                  <el-switch
                    v-model="value1"
                  />
                </div>
              </div>
              <div class="item">
                <div class="left">
                  <p class="text">系统消息</p>
                  <p class="desc">系统消息将以站内信的形式通知

                  </p>
                </div>
                <div class="right">
                  <el-switch
                    v-model="value2"
                  />
                </div>
              </div>
              <div class="item">
                <div class="left">
                  <p class="text">待办任务</p>
                  <p class="desc">待办任务将以站内信的形式通知
                  </p>
                </div>
                <div class="right">
                  <el-switch
                    v-model="value3"
                  />
                </div>
              </div>
            </div>
          </div>
        </el-tab-pane>
      </el-tabs>
    </el-card>
  </div>
</template>

<script>
export default {
  data() {
    return {
      value1: true,
      value2: true,
      value3: true
    }
  }
}
</script>

<style lang="scss" scoped>
.setting {
  .tabs {
    padding: 10px;
    .title {
      font-size: 22px;
      margin-bottom: 20px;
    }

    .list {
      .item {
        padding: 10px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
        border-bottom: 1px solid #f0f0f0;
        .desc{
          color: rgba(0,0,0,.45);
        }
      }
    }
  }
}
</style>
